We use the ‘mtcars’ dataset and understand the relation between various factors and weight(‘wt’). Graph is plotted between mileage(‘mpg’) and weight(‘wt’), and the number of cylinders are being visualised.
## Warning: package 'plotly' was built under R version 4.0.5
## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
## Warning: `line.width` does not currently support multiple values.
## Warning: `line.width` does not currently support multiple values.
## Warning: `line.width` does not currently support multiple values.